<include file="public/header"/>
<div class="am-cf admin-main">
<!-- sidebar start -->
<include file="public/sidebar"/>
<!-- sidebar end -->

<!-- content start -->
<div class="admin-content">
<div class="am-cf am-padding">
    <div class="am-fl am-cf"><strong class="am-text-primary am-text-lg">
        <if condition="$descr eq 'lt'">
            量体提成列表
            <else/>
            工厂成本列表
        </if>

    </strong></div>
    <div id="result"></div>
</div>

<div class="am-g">
    <div class="am-u-md-6 am-cf">
        <div class="am-fl am-cf">
            <div class="am-btn-toolbar am-fl">
                <div class="am-btn-group am-btn-group-xs">
                    <if condition="$descr eq 'lt'">
                        <form method="post" action="__URL__/ltPayExport">
                            <input type="text" name="start_time" placeholder="选择日期" data-am-datepicker readonly/>
                            <input type="text" name="end_time" placeholder="选择日期" data-am-datepicker readonly/>
                            <button type="submit" class="am-btn-primary am-btn-xs">
                                导出excel
                            </button>
                        </form>
                        <else/>
                        <form method="post" action="__URL__/gcListExport">
                            <input type="text" name="start_time" placeholder="选择日期" data-am-datepicker readonly/>
                            <input type="text" name="end_time" placeholder="选择日期" data-am-datepicker readonly/>

                            <button type="submit" class="am-btn-primary am-btn-xs">
                                导出excel
                            </button>
                        </form>
                    </if>
                </div>
            </div>
        </div>
    </div>
</div>

<div class="am-g">
    <div class="am-u-sm-12">
        <table class="am-table am-table-striped am-table-hover table-main">
            <thead>
            <tr>
                <th class="table-check"><input type="checkbox" id="all"/></th>
                <th class="table-type">日期</th>
                <th class="table-type">编号</th>
                <th class="table-id">数量</th>
                <th class="table-type">面料</th>
                <th class="table-type">类型</th>
                <if condition="$descr eq 'lt'">
                    <th class="table-type">提成</th>
                    <th class="table-type">量体师</th>
                    <else/>
                    <th class="table-type">成本</th>
                </if>
                <th class="table-set">操作</th>
            </tr>
            </thead>
            <tbody>
            <foreach name="datas" item="data">
                 <tr>
                    <td><input type="checkbox" name="omid[]" class="check" value="{$data.omid}"/></td>
                    <td>{$data.order_time|date="Y-m-d",###}</td>
                     <td>{$data.order_num2}</td>
                    <td>
                            {$data.num}
                    </td>
                    <td>{$data.color}</td>
                    <td>{$data.type}</td>
                     <if condition="$descr eq 'lt'">
                         <td>{$data.lt_price}</td>
                         <td>{$data.belong}</td>
                         <else/>
                         <td>{$data.gc_price}</td>
                     </if>
                    <td>
                        <div class="am-btn-toolbar">
                            <div class="am-btn-group am-btn-group-xs">

                            </div>
                        </div>
                    </td>
                </tr>
            </foreach>
            </tbody>
        </table>
        <div class="am-cf">
            {$page}
        </div>
    </div>
</div>
</div>
<!-- content end -->
</div>
<script src="__PUBLIC__/assets/js/jquery.min.js"></script>
<script language="javascript" type="text/javascript">

</script>
<include file="public/footer"/>